# -*- coding: utf-8 -*-

#@TODO: Desenhar pino com coordenadas relativas

__all__ = ['Pin', 'PIN_INPUT', 'PIN_OUTPUT']

PIN_INPUT = 0
PIN_OUTPUT = 1

class Pin(object):
    def __init__(self, block, type):
        self.__block = block
        self.type = type
        self.net = None
    def has_net(self):
        return not (self.net is None)
    def get_block(self):
        return self.__block
